package Reflection.Po;

import lombok.Data;

@Data
public class User {

    private String id;

    private String name;

    private String pwd;

    private String text;

    public User(){

    }

    public User(String id, String name, String pwd, String text) {
        this.id = id;
        this.name = name;
        this.pwd = pwd;
        this.text = text;
    }

    private String getPwdByidAndName(String id,String name) {

        if ( id.equals(this.id) && name.equals(this.name) ){
            return this.pwd;
        } else {
            return null;
        }

    }

}
